.class Lcom/example/zsccpsapp/MainActivity$18;
.super Ljava/lang/Thread;
.source "MainActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/zsccpsapp/MainActivity;->joinorder()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/zsccpsapp/MainActivity;


# direct methods
.method constructor <init>(Lcom/example/zsccpsapp/MainActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/zsccpsapp/MainActivity$18;->this$0:Lcom/example/zsccpsapp/MainActivity;

    .line 1521
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    const/4 v11, 0x7

    .line 1523
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 1526
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 1528
    .local v3, "msg":Landroid/os/Message;
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v9, "\u83b7\u53d6\u7528\u6237\u6570\u636e"

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1529
    iget-object v8, p0, Lcom/example/zsccpsapp/MainActivity$18;->this$0:Lcom/example/zsccpsapp/MainActivity;

    .line 1530
    const-string v9, "userInfo"

    const/4 v10, 0x0

    .line 1529
    invoke-virtual {v8, v9, v10}, Lcom/example/zsccpsapp/MainActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 1531
    .local v5, "preferences":Landroid/content/SharedPreferences;
    const-string v8, "uid"

    const-string v9, ""

    invoke-interface {v5, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 1532
    .local v0, "account":Ljava/lang/String;
    const-string v8, "pass"

    const-string v9, ""

    invoke-interface {v5, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 1533
    .local v4, "password":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v8, ""

    invoke-virtual {v0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 1534
    :cond_0
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1535
    const-string v8, "nologin"

    iput-object v8, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1536
    iput v11, v3, Landroid/os/Message;->arg1:I

    .line 1537
    sget-object v8, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1583
    :goto_0
    return-void

    .line 1541
    :cond_1
    new-instance v8, Ljava/lang/StringBuilder;

    iget-object v9, p0, Lcom/example/zsccpsapp/MainActivity$18;->this$0:Lcom/example/zsccpsapp/MainActivity;

    iget-object v9, v9, Lcom/example/zsccpsapp/MainActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 1542
    const-string v9, "/index.php?ctrl=psuser&action=ordercontrol&uid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 1543
    invoke-virtual {v8, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&pwd="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&orderid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/zsccpsapp/MainActivity$18;->this$0:Lcom/example/zsccpsapp/MainActivity;

    # getter for: Lcom/example/zsccpsapp/MainActivity;->orderid:Ljava/lang/String;
    invoke-static {v9}, Lcom/example/zsccpsapp/MainActivity;->access$26(Lcom/example/zsccpsapp/MainActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&dotype="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/zsccpsapp/MainActivity$18;->this$0:Lcom/example/zsccpsapp/MainActivity;

    # getter for: Lcom/example/zsccpsapp/MainActivity;->dotype:Ljava/lang/String;
    invoke-static {v9}, Lcom/example/zsccpsapp/MainActivity;->access$14(Lcom/example/zsccpsapp/MainActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&datatype=json"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 1541
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 1544
    .local v7, "url":Ljava/lang/String;
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "\u8c03\u7528\u66f4\u65b0\u6570\u636e----------------------------"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1545
    invoke-static {v7}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 1546
    .local v6, "str":Ljava/lang/String;
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "\u8fd4\u56de\u6570\u636e"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1549
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 1551
    .local v2, "json":Lorg/json/JSONObject;
    const-string v8, "error"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, "true"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 1552
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1554
    const-string v8, "msg"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1555
    const/4 v8, 0x7

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 1556
    sget-object v8, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 1575
    .end local v2    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 1577
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 1578
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1580
    const/4 v8, 0x4

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 1581
    sget-object v8, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 1559
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v8, "msg"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_3

    .line 1560
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1561
    const/4 v8, 0x6

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 1562
    sget-object v8, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 1566
    :cond_3
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v9, "\u8f6c\u6362\u6570\u636e"

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1568
    iput-object v6, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1570
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v9, "\u8fd4\u56de\u6570\u636e\u7ed3\u675f"

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1571
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1572
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v9, "\u5173\u95ed\u63d0\u793a"

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1573
    const/16 v8, 0x24

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 1574
    sget-object v8, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1586
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1587
    monitor-exit p0

    return-void

    .line 1586
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
